<?php

/**
 * This is the model class for table "language_partner".
 */

require_once dirname(__FILE__) . '/base/LanguagePartnerBase.php';
class LanguagePartner extends LanguagePartnerBase
{
    public function relations()
    {
        // NOTE: you may need to adjust the relation name and the related
        // class name for the relations automatically generated below.
        return array(
            'partner' => array(self::BELONGS_TO, 'Partner','partner_id','joinType'=>'INNER JOIN'),
        );
    }
    
    protected function beforeSave()
    {
        $this->alias = Utility::createAlias($this, $this->name);
        return parent::beforeSave();
    }
}